package com.tjise.g_fats_enemy.springboot.controller;

import com.tjise.g_fats_enemy.springboot.dao.PriceClassDao;
import com.tjise.g_fats_enemy.springboot.po.PriceClass;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PriceClassController {
    @Autowired
    PriceClassDao priceClassDao;

    @RequestMapping(value = "getPriceClass", method = {RequestMethod.GET, RequestMethod.POST})
    @ResponseBody
    public PriceClass getPriceClass() {
        return priceClassDao.findPriceClass();
    }
}